# -*- conding:UTF-8 -*-

'''
@ Project: take_out
@ File: serializer.py
@ Author: 韩成瑾
@ Date：2022/8/17 20:41

'''

from rest_framework.serializers import ModelSerializer
from myapp.models import *

# 地址
class AddrSerializer(ModelSerializer):
    class Meta:
        model = Address
        fields = '__all__'

# 用户
class UserSerializer(ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


# 订单
class OrderSerializer(ModelSerializer):
    class Meta:
        model = Order
        fields = '__all__'

# 菜品分类
class CommoditySer(ModelSerializer):
    class Meta:
        model = Commodity
        fields = '__all__'